<?php 
include("../lang/cn/company_type_config.php");
include_once("../module/product/includes/plugin_tarento_class.php");
$tarento = new Tarento();
$de = array();
if($_GET['id']>0){
	//获取用户信息
	$sql = "select member_id from ".TARENTO." where id={$_GET['id']}";
	$db->query($sql);
	$memberId = $db->fetchField('member_id');
	$de = $tarento->get_tarento_detail($memberId);
	//获取用户返利结算记录信息
	$de['rebate_records'] = $tarento->get_tarento_rebate_records($memberId);
}else{
	msg((empty($_SERVER['HTTP_REFERER'])?"{$config->site_index}admin":$_SERVER['HTTP_REFERER']));
}

$tpl->assign("de",$de);
$tpl->assign("config",$config);
$tpl->display("tarento_detail.htm");
?>